package com.tony.dao;

import com.tony.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface UserMapper {
    @Select("select * from user")
    List<User> getUserList();

//    建议一些简单sql可以使用注解，复杂的语句还是mapper里面写
    @Insert("insert into user (id,username,password) values (#{id},#{username},#{password})")
    int add(User user);
}
